package com.example.cunion.service;

import com.example.cunion.entity.Complaint;
import com.example.cunion.entity.Complaint;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;
import java.util.List;

/**
* @author Aero
* @description 针对表【complaint(投诉表)】的数据库操作Service
* @createDate 2023-10-22 22:37:28
*/
public interface ComplaintService extends IService<Complaint> {

    List<HashMap> searchUnCheckFirstComplaintByPage(HashMap map);

    List<HashMap> searchUnCheckByPage(HashMap map);

    Integer agreeComplaint(String id);

    Integer rejectComplaint(String id);

    Integer addComplaint(HashMap map);

    Integer updateComplaintStatus(HashMap map);


    //使用mp完成增删改查
    Integer addComplaint(Complaint complaint);
    Integer deletedComplaint(String complaintId);
    Integer updateComplaint(Complaint complaint);
    List<Complaint> searchComplaint(Integer start, Integer length);

}
